package cn.stylefeng.guns.modular.ums.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 分享记录表
 * </p>
 *
 * @author yzb
 * @since 2022-04-28
 */
@Data
@TableName("ums_share_log")
public class ShareLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 类型：0-职位分享，1-课程分享，3-外包分享
     */
    @TableField("type")
    private Integer type;

    /**
     * 会员ID
     */
    @TableField("member_id")
    private Long memberId;

    /**
     * 招聘者ID
     */
    @TableField("com_member_id")
    private Long comMemberId;

    /**
     * 推广码
     */
    @TableField("tcode")
    private String tcode;

    /**
     * 数据ID
     */
    @TableField("data_id")
    private Long dataId;

    /**
     * 企业ID
     */
    @TableField("company_id")
    private Long companyId;

    /**
     * 阅读人数
     */
    @TableField("number")
    private Integer number;

    /**
     * 启用状态:0-停用，1-启用
     */
    @TableField("status")
    private Integer status;

    /**
     * 创建者
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新者
     */
    @TableField("update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    public ShareLog() {
    }

    public ShareLog(Long id, Integer number) {
        this.id = id;
        this.number = number;
    }
}
